﻿<UserControl x:Class="LiveStream.PlaybackControls"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
		mc:Ignorable="d"
		xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
		xmlns:LiveStream="clr-namespace:LiveStream">
	<UserControl.Resources>
		<!--<LiveStream:VideoSoureList x:Key="videos"/>-->
	</UserControl.Resources>
    <StackPanel Name="LayoutRoot" Orientation="Vertical" Background="White">
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Content="Reset" Height="20" Name="Reset" Width="60" Margin="5,5,30,5" Click="Reset_Click" IsTabStop="False" />
            <sdk:Label Height="13" Name="label1" Margin="5">Feed:</sdk:Label>
            <!--<ComboBox Height="23" ItemsSource="{StaticResource videos}" DisplayMemberPath="Description" HorizontalAlignment="Left" Margin="57,12,0,0" Name="comboBox1" VerticalAlignment="Top" Width="120"/>-->
            <ComboBox Height="23" DisplayMemberPath="Description" Name="SourceSelectionCombo" Width="120" MaxDropDownHeight="100" Margin="5" SelectionChanged="SourceSelectionChanged" IsTabStop="False">
                <ComboBox.Items>
                    <LiveStream:VideoSource Description="9:00 AM" Source="http://stream.cloud.austinstone.org:22201/9am.isml/manifest"/>
                    <LiveStream:VideoSource Description="11:15 AM" Source="http://stream.cloud.austinstone.org:22201/11am.isml/manifest"/>
                    <LiveStream:VideoSource Description="5:00 PM" Source="http://stream.cloud.austinstone.org:22201/5pm.isml/manifest"/>
                    <LiveStream:VideoSource Description="7:00 PM" Source="http://stream.cloud.austinstone.org:22201/7pm.isml/manifest"/>
                    <LiveStream:VideoSource Description="Test 1" Source="http://stream.cloud.austinstone.org:22201/test1.isml/manifest"/>
                    <LiveStream:VideoSource Description="Test 2" Source="http://stream.cloud.austinstone.org:22201/test2.isml/manifest"/>
                    <LiveStream:VideoSource Description="Test 3" Source="http://stream.cloud.austinstone.org:22201/test3.isml/manifest"/>
                    <LiveStream:VideoSource Description="Big Buck Bunny" Source="http://video3.smoothhd.com.edgesuite.net/ondemand/Big%20Buck%20Bunny%20Adaptive.ism/Manifest"/>
                    <LiveStream:VideoSource Description="Elephants Dream" Source="http://ecn.channel9.msdn.com/o9/content/smf/smoothcontent/elephantsdream/Elephants_Dream_1024-h264-st-aac.ism/manifest"/>
                </ComboBox.Items>
            </ComboBox>
            <Button Content="Preview" Height="20" Name="Preview" Width="80" IsEnabled="False" Margin="5" Click="Preview_Click" IsTabStop="False" />
            <Button Content="Play" Height="20" Name="PlayButton" Width="60" IsEnabled="False" Margin="5" Click="PlayButton_Click" IsTabStop="False" />
            <Button Content="Set Bookmark" Height="20" Name="SetBookmark" IsEnabled="False" Width="90" Margin="100,5,5,5" Click="SetBookmark_Click" IsTabStop="False" />
            <Button Content="Go To Bookmark" Height="20" Name="GoToBookmark" IsEnabled="False" Width="105" Margin="5" Click="GoToBookmark_Click" IsTabStop="False" />
            <Button Content="Go Live" Height="20" Name="GoLive" Width="60" IsEnabled="False" Margin="100,5,5,5" Click="GoLive_Click" IsTabStop="False" />
            <Button Content="Fullscreen" Height="20" Name="Fullscreen" Width="75" Click="Fullscreen_Click" Margin="5" IsTabStop="False" />
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Content="&lt;&lt;" Height="20" Name="SeekBackwardBigButton" Click="SeekBackwardBigButton_Click" Margin="130,5,5,5" IsTabStop="False" /> 
            <Button Content="&lt;" Height="20" Name="SeekBackwardButton" Click="SeekBackwardButton_Click" Margin="5" IsTabStop="False" />
            <LiveStream:Timeline Height="23" x:Name="slider1" Width="900" IsHitTestVisible="true" IsEnabled="False" Margin="5" IsTabStop="False" />
            <Button Content="&gt;" Height="20" Name="SeekForwardButton" Click="SeekForwardButton_Click" Margin="5" IsTabStop="False" />
            <Button Content="&gt;&gt;" Height="20" Name="SeekForwardBigButton" Click="SeekForwardBigButton_Click"  Margin="5" IsTabStop="False" />
            <sdk:Label Height="13" Name="CurrentTime" Width="56" Margin="5">00:00:00</sdk:Label>
            <sdk:Label>/</sdk:Label>
            <sdk:Label Height="13" Name="EndTime" Width="56" Margin="5">00:00:00</sdk:Label>
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
            <CheckBox Content="Low Bitrate Only" Name="LowBitrateOnly" Margin="5,5,50,5" IsChecked="False" Checked="LowBitrateOnly_Checked" Unchecked="LowBitrateOnly_Unchecked" IsTabStop="False" />
            <sdk:Label Margin="5">Download Bitrate:</sdk:Label>
            <sdk:Label Name="CurrentDownloadBitrate" Width="56" Margin="5">Unknown</sdk:Label>
            <sdk:Label Margin="5">Playback Bitrate:</sdk:Label>
            <sdk:Label Name="CurrentPlaybackBitrate" Width="56" Margin="5">Unknown</sdk:Label>
            <sdk:Label Margin="5">Frames:</sdk:Label>
            <sdk:Label Name="DroppedFrames" Width="56" Margin="5">0/0</sdk:Label>
        </StackPanel>
		<Grid x:Name="MessageContainer" Background="Transparent" HorizontalAlignment="Stretch" Height="50" Margin="50,0" Visibility="Collapsed">
            <Rectangle VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Fill="Red" Opacity=".50"/>
            <sdk:Label x:Name="Message" Foreground="White" HorizontalAlignment="Center"></sdk:Label>
		</Grid>
    </StackPanel>
</UserControl>
